#ifndef THEMEEDITOR_H
#define THEMEEDITOR_H

#include <QDialog>
#include "Include/Plugins.h"
#include "Include/ILexers.h"

namespace Ui {
    class ThemeEditor;
}

class ITheme;
class ThemeEditor : public QDialog
{
    Q_OBJECT

public:
    explicit ThemeEditor(ITheme *theme, QWidget *parent = 0);
    virtual ~ThemeEditor();

private slots:
    void onAccept();
    void lexersChange(const QString& name);
private:
private:
    Ui::ThemeEditor *ui;
    ITheme *_theme;
    PluginWrapper<Lexers::ILexers> _lexers;
    QMap <QString, int> _lexMap;
};


#endif // THEMEEDITOR_H
